package com.appliance.cycling2011.download;

import com.appliance.cycling2011.RootActivity;

public class DownloadSpecificThread extends DownloadThread {

	String url;
	String directory;
	String filename;
	String extension;
	
	// variables from RootActivity
	protected final static String PATH_DIR = RootActivity.PATH_DIR;
//	protected Handler mHandler = new Handler();

	public DownloadSpecificThread(String url, String directory, String filename, String extension) {
		this.url = url;
		this.directory = directory;
		this.filename = filename;
		this.extension = extension;
	}

	@Override
	public void run() {
		// TODO Auto-generated method stub
		if (!DownloadFromUrl(url, PATH_DIR, filename, extension, 0)) {

//			mHandler.post(new Runnable() {
//
//				public void run() {
//					setNewToast("No Internet");
//				}
//			});
		}
	}

}
